import styled from 'styled-components'

export const HomeWrap = styled.div`
    width:960px;
    margin: 0 auto;
    overflow:hidden;
    .banner-img{
        width:625px;
        height:270px;
    }
`

export const HomeLeft = styled.div`
    margin-left: 15px;
    padding-top: 30px;
    width: 625px;
    float:left;
`

export const Homeright = styled.div`
    width:280px;
    float:right;
`

export const TopicWrapper = styled.div`
    padding: 20px 0 10px 0;
    overflow:hidden;
    margin-left -18px;
    border-bottom: 1px solid #dcdcdc;
`
export const TopicItem = styled.div`
    float:left;
    background: #f7f7f7;
    margin-left:18px;
    height:32px;
    line-height:32px;
    font-size:14px;
    border:1px solid #dcdcdc;
    border-radius:4px;
    padding-right:10px;
    margin-bottom: 18px;
    img{
        margin-right:10px;
        width:32px;
        height:32px;
        float:left;
        display:block;
    }
`

export const ListItem = styled.div`
    overflow:hidden;
    padding: 20px 0;
    border-bottom: 1px solid #dcdcdc;
    img{
        width:125px;
        height:100px;
        display:block;
        float:right;
        border-radius:10px;
    }
`

export const ListInfo = styled.div`
    width:500px;
    float:left;
    h3{
        font-size:18px;
        line-height:27px;
        font-weight: bold;
        color: #333;
    }
    p{
        line-height:24px;
        font-size:13px;
        color:#999;
    }
`

export const RecommendWrapper = styled.div`
    margin: 30px 0 ;
    width: 280px;
`
export const RecommendItem = styled.div`
    width: 280px;
    height: 50px;
    background: url(${(props) => props.imgurl});
    background-size: contain;
`
export const WriterWrap = styled.div`
    width:278px;
    height: 300px;
    line-height:300px;
    border-radius:8px;
    text-align: center;
    border: 1px solid #dcdcdc;
`

export const LoadMore = styled.div`
    width:100%;
    height:40px;
    line-height:40px;
    background:#a5a5a5;
    text-align:center;
    border-radius:20px;
    color:#fff;
    margin: 30px 0;
    cursor: pointer;
`
export const BackTop = styled.div`
    position: fixed;
    width:60px;
    height:60px;
    line-height:60px;
    text-align:center;
    border: 1px solid #ccc;
    right:30px;
    bottom:30px;
`